<?php

/**
 * 获取状态描述
 * @param type $v
 * @param type $type
 * @param type $defv
 * @return type
 * @since 1.0 <2015-10-24> SoChishun Added.
 */
function afn_get_status_text($v, $type, $defv = '') {
    $data = array();
    switch ($type) {
        case 'channel-type':
            $data = array('1' => '单独页面', '2' => '文章栏目', '3' => '分类链接', '4' => '链接地址', '5' => '下载栏目');
            break;
    }
    return isset($data[$v]) ? $data[$v] : $defv;
}
